package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Location implements Serializable {

    /** identifier field */
    private Integer locationId;

    /** nullable persistent field */
    private String locationDesc;

    /** nullable persistent field */
    private String mapReference;

    /** persistent field */
    private Set events;

    /** persistent field */
    private Set tasks;

    /** full constructor */
    public Location(Integer locationId, String locationDesc, String mapReference, Set events, Set tasks) {
        this.locationId = locationId;
        this.locationDesc = locationDesc;
        this.mapReference = mapReference;
        this.events = events;
        this.tasks = tasks;
    }

    /** default constructor */
    public Location() {
    }

    /** minimal constructor */
    public Location(Integer locationId, Set events, Set tasks) {
        this.locationId = locationId;
        this.events = events;
        this.tasks = tasks;
    }

    public Integer getLocationId() {
        return this.locationId;
    }

    public void setLocationId(Integer locationId) {
        this.locationId = locationId;
    }

    public String getLocationDesc() {
        return this.locationDesc;
    }

    public void setLocationDesc(String locationDesc) {
        this.locationDesc = locationDesc;
    }

    public String getMapReference() {
        return this.mapReference;
    }

    public void setMapReference(String mapReference) {
        this.mapReference = mapReference;
    }

    public Set getEvents() {
        return this.events;
    }

    public void setEvents(Set events) {
        this.events = events;
    }

    public Set getTasks() {
        return this.tasks;
    }

    public void setTasks(Set tasks) {
        this.tasks = tasks;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("locationId", getLocationId())
            .toString();
    }

}
